﻿<%@ Page Title="Relamua.com" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title><% Response.Write(Me.Title) %></title>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MenuTop" Runat="Server">
<table width="100%">
    <tr>
        <td align="left">
            <asp:TextBox ID="txtKeyword" runat="server" Text="Tìm kiếm" Width="200px"></asp:TextBox>

            <asp:Button ID="btnSearch" runat="server"  Text="Tìm"/>
        </td>
        <td align="right">
            <asp:LinkButton ID="lbtnRegister" runat="server" Text="Đăng ký"></asp:LinkButton> &nbsp;|&nbsp;
            <asp:LinkButton ID="lbtnLogin" runat="server" Text="Đăng nhập"></asp:LinkButton>
        </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Category" Runat="Server">
    
        <div class="item_bg" align="left">
            <asp:LinkButton id="btnViewAll" runat="server" Text="Tất Cả" CssClass="text_1"></asp:LinkButton>
        </div>
        <asp:DataList ID="ListCategoryGroup" runat="server" Width="100%">
            <ItemStyle HorizontalAlign="Left"/>
            <ItemTemplate>
                <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>' Visible="false"></asp:Label>                
                <div class="item_bg">
                    <asp:HyperLink ID="lnkCategoryGroupName" runat="server" Text='<%# Eval("CategoryGroupName")%>' NavigateUrl="#" CssClass="text_1"></asp:HyperLink>
                </div>
                <asp:Panel ID="panelCategory" runat="server" Width="100%">
                    <asp:DataList ID="ListCategory" runat="server" oneditcommand="ListCategory_EditCommand" Width="100%">                
                        <ItemStyle HorizontalAlign="Left"/>
                        <ItemTemplate>        
                            <div class="item_left">
                                <asp:LinkButton id="btnCategoryName" runat="server" Text='<%# Eval("Category.CategoryName") %>' CommandName="Edit" CssClass="title_1"></asp:LinkButton>
                            </div>
                            <asp:Label ID="lblCategoryID" runat="server" Text='<%# Eval("Category.ID") %>' Visible="false"></asp:Label>
                        </ItemTemplate>                                    
                    </asp:DataList>
                </asp:Panel>
            </ItemTemplate>
        </asp:DataList> 
       
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">    
        <asp:GridView ID="grdView" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" 
            BorderWidth="0px" AllowPaging="True" 
            Width="100%" HorizontalAlign="Left" PageSize="20" 
            Height="100%" EnableModelValidation="True">
            <FooterStyle BackColor="#5D7B9D" />                
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />            
            <Columns>
                <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:Label ID="lblID" runat="server" Text='<%# Bind("Product.ID") %>' Visible="false"/>
                        <table border="0"  cellpadding="4" cellspacing="0" >
                            <tr>
                                <td rowspan="4">
                                    <img src="Images/no_image.gif"/>
                                </td>
                                <td><asp:LinkButton ID="lbtnEdit" runat="server"  Text='<%# Bind("Product.ProductName") %>' CommandName="Edit" CssClass="text_2"/></td>                        
                            </tr>
                             <tr>
                                <td><asp:Label ID="lbProductDescription" runat="server"  Text='<%# Bind("Product.ProductDescription") %>' ></asp:Label></td>
                            </tr>
                            <tr>
                                <td>Trị giá: <asp:Label ID="lbPrice" runat="server"  Text='<%# Bind("Product.Price") %>' ></asp:Label> VND</td>
                            </tr>
                            <tr>
                                <td>Mã số: <asp:Label ID="lbProductCode" runat="server"  Text='<%# Bind("Product.ProductCode") %>' ></asp:Label></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:TemplateField>        
            </Columns>       
        </asp:GridView>
</asp:Content>

